package com.nulldev.util.crypto;

import com.nulldev.util.crypto.encryptAPI.litestring.LiteString;

public class Compressor {

	public static String compress(final byte[] data) {
		return LiteString.zipUTF8_Base64B_N2(data);
	}
	
	public static String compress(final String data) {
		return LiteString.zipUTF8_Base64(data);
	}
	
	public static String decompress(final String data) {
		return LiteString.unzipBase64(data);
	}
	
	public static byte[] decompressBytes(final String data) {
		return LiteString.unzipBase64B(data);
	}
}
